package com.cx.base.day10_wrapperClass;

/**
 * @Author: robert.song
 * @Date: Created in 2022/5/9
 */
public class Util_02_Double {

    public static void main(String[] args) {
//        装换成double
        System.out.println(Double.parseDouble("12.44"));
//        转换成Double
//        1 根据double转换
        System.out.println(Double.valueOf(12.33));
//        2 根据字符串转换
        System.out.println(Double.valueOf("12.33"));
//        转换成字符串
        System.out.println(Double.toString(12.133));
//        获取double
//        通过赋值操作获取double
        Double dObject = new Double(5.3);
        double d = dObject;
        System.out.println(d);
//        通过Double的doubleValue()方法获取对应double
        System.out.println(dObject.doubleValue());
        System.out.println(Double.compare(12.22, 12.33));
        System.out.println(Double.hashCode(12.22));
        System.out.println(Double.MAX_VALUE);
        System.out.println(Double.MIN_VALUE);
    }
}
